package com.roamer.javase.demo.algorithm;

import org.openjdk.jol.info.ClassLayout;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author roamer
 * @version v1.0
 * @date 2020/3/18 14:44
 */
public class ClassHeader {
    static{
        System.out.println("ClassHeader.class loading static");
    }
    public static void main(String[] args) {

        System.out.println(Test1.a);
    }

    static class Test extends ClassHeader{
        static final String b = "a";
        static {
            System.out.println("Test.class loading static");
        }

    }

    static class Test1 extends Test{
        static final String a = b;
        static {
            System.out.println("Test1.class loading static");
        }

    }

}